package org.JQbitorrentClinet.request.search;

import com.google.gson.reflect.TypeToken;
import lombok.Builder;
import org.JQbitorrentClinet.base.BaseGetParam;
import org.JQbitorrentClinet.pojo.search.SearchPlugin;

import java.util.List;

@Builder
public class GetSearchPluginsParam extends BaseGetParam {

    public GetSearchPluginsParam() {
        responseType = new TypeToken<List<SearchPlugin>>() {
        }.getType();
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/search/plugins";
    }
}
